import type { MockMethod } from "vite-plugin-mock";

import * as user from "./module/user";
import * as menu from "./module/menu";
import * as md from "./module/md";
import * as nlp from "./module/nlp";
import * as tree from "./module/tree";
import * as note from "./module/note";
import * as about from "./module/about";
import * as web3d from "./module/web3d";

const bookList = [
  { id: "hsajkdhjk12321", name: "123", author: "123" },
  { id: "hsajkdhjk12322", name: "123", author: "123" },
];
export default [
  {
    url: "/api/book",
    method: "get",
    response: () => {
      return bookList;
    },
  },
  ...web3d.default,
  ...about.default,
  ...note.default,
  ...tree.default,
  ...nlp.default,
  ...menu.default,
  ...user.default,
  ...md.default,
] as MockMethod[];
